package com.example.orderproduct.controller;

import com.example.orderproduct.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName OrderController
 * @Description TODO
 * @Auth ying.xiao
 * @Date 2021/7/6
 * @Version 1.0.0
 */
@RestController
public class OrderController {

    @Autowired
    private OrderService orderService;

    @GetMapping("/createOrder")
    public String createOrder(){
        return orderService.createOrder();
    }
}
